package com.rope.backEnd.service.impl;

import com.rope.backEnd.mapper.ShareMapper;
import com.rope.backEnd.pojo.Share;
import com.rope.backEnd.service.ShareService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShareServiceImpl implements ShareService {

    @Autowired
    private ShareMapper shareMapper;

    @Override
    public List<Share> list() {
        return shareMapper.list();
    }

    @Override
    public int add(Share publish) {
        return shareMapper.add(publish);
    }


    @Override
    public List<Share> publishList(int publishUserID) {
        return shareMapper.publishList(publishUserID);
    }

    @Override
    public int state(int statePublish, int publishUserID) {
        return shareMapper.state(statePublish,publishUserID);
    }
}
